Release 10.1A: OpenEdge Data Management:
Database Administration


Archiving an AI file

Backing up the AI file involves:

Scheduling backups

Depending on your database backup schedule and needs, you might want to back up the AI files:

If you are using a single AI file, it is important to back up the AI file before you fill the disk that contains it. If you do not back it up in time, the database engine shuts down the database. For a complete description of how to recover from a full AI disk, see Chapter 6, " Recovering a Database." Also, if you are using a single AI file, you must shut down the database to switch to a new AI file.

If you are using multiple AI extents, you must back up the extents regularly to ensure that the system does not run out of AI space. Before deciding to back up the AI files every day, consider that recovering the database from small AI files is more intricate than recovering from a single, large AI file.

Performing the backup

You must use an operating system utility to back up the AI files regardless of whether you are using a single AI file or multiple AI files. Ensure that the backup technique backs up the entire file. On many UNIX systems, certain utilities (for example, cpio) will back up only the first part of files over a certain size (controlled by the ULIMIT parameter). Backups of partial AI files are invalid and unusable. If you use ftp to transfer the AI files to a different machine, binary mode must be used. Failing to use ftp in binary will leave your AI files in an unusable state.

Protecting the backup

After you back up the AI file, make sure you:

Extracting AI blocks

Extracting AI blocks from an AI extent, compacts your AI data into the smallest possible file. Extracting AI blocks can significantly shrink the size of an AI file, particularly if you have large fixed-size AI extents which are not filled to capacity. Extracting AI blocks is beneficial in cases where you are using after-imaging to replicate data, perhaps at a disaster recovery site, and you need to minimize file transfer size.

Use the AIMAGE EXTRACT qualifier of the RFUTIL utility to extract AI blocks from an extent:

rfutil db-name -C aimage extract -a ai-extent -o output-file 

The output file of extracted blocks is equivalent to the source AI extent. Use the file of extracted blocks with the RFUTIL utilities to roll forward a target database. For complete syntax information see "RFUTIL AIMAGE EXTRACT qualifier" section.

Note: Extracting blocks from an AI extent is only beneficial for fixed length extents that are not filled to capacity. There will be minimal savings of disk space when extracting blocks from a variable length extent.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095